#ifndef SHORTCUTPREFERENCESWIDGET_H
#define SHORTCUTPREFERENCESWIDGET_H

#include <QWidget>
#include "shortcutsmodel.h"
#include "mucustomshortcuts.h"
#include "shortcutdelegate.h"

namespace Ui {
	class ShortcutPreferencesWidget;
}

class ShortcutPreferencesWidget : public QWidget
{
		Q_OBJECT

	public:
		explicit ShortcutPreferencesWidget(QWidget *parent = 0);
		~ShortcutPreferencesWidget();

		void setShortcuts(MuCustomShortcuts*);
		void applyChanges();


	private slots:

		void onEditorDisplayed(int index);
		void onEditorClosed(int index);

	private:

		Ui::ShortcutPreferencesWidget *ui;
		ShortcutsModel *m_model;
		ShortcutDelegate* m_shortcutDelegate;
};

#endif // SHORTCUTPREFERENCESWIDGET_H
